package com.fhxy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fhxy.model.domain.Content;
import com.fhxy.service.ContentService;
import com.fhxy.mapper.ContentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 卢洋
* @description 针对表【content】的数据库操作Service实现
* @createDate 2024-06-21 15:02:58
*/
@Service
public class ContentServiceImpl extends ServiceImpl<ContentMapper, Content>
    implements ContentService{

    @Resource
    private ContentMapper contentMapper;

    @Override
    public List<Content> search() {
        QueryWrapper<Content> queryWrapper = new QueryWrapper<>();
        List<Content> contents = contentMapper.selectList(queryWrapper);
        return contents;
    }
}




